select Source
Tells the browser to use the given capture source.
The source must be present in the capture sources received from the sources.
If the screen capture is forbidden by the system security permissions the request will be cancelled. This is usual for macOS where the screen or application window capture must be explicitly allowed in the System Preferences.
Parameters
the content source to use for the capture
the audio capture mode for the capture
Overloaded version of selectSource that allows specifying whether to show a notification during capture.
Since
8.7.0
Parameters
the content source to use for the capture
the audio capture mode for the capture
whether to show a capture notification while capturing is active
Tells the browser to use the given browser as the capture source.
The passed browser instance and the browser instance requesting the capture session must be created by the same com.teamdev.jxbrowser.engine.Engine instance. Otherwise, the content capture will be cancelled.
Parameters
the browser which contents will be captured
the mode of capturing the audio from the browser
Overloaded version of selectSource that allows specifying whether to show a notification during capture.
Since
8.7.0
Parameters
the browser which contents will be captured
the mode of capturing the audio from the browser
whether to show a capture notification while capturing is active